//
//  NightTableViewCell.m
//  E家
//
//  Created by dllo on 15/10/13.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "NightTableViewCell.h"
#import "FitHeader.h"

@implementation NightTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}

-(void)creatView{
    self.leftLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_leftLabel];

    
    self.rightSwitch = [[UISwitch alloc] init];
    [self.contentView addSubview:_rightSwitch];

}

-(void)layoutSubviews{
    [super layoutSubviews];
    _leftLabel.frame = CGRectMake(63 * FITWidth, 0, 200 * FITWidth, self.contentView.frame.size.height);
    _leftLabel.text = @"夜间模式";
    _rightSwitch.frame = CGRectMake(305 * FITWidth, _leftLabel.frame.origin.y + 15 * FITHeight, 100 * FITWidth, 50 * FITHeight);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
